package com.stylefeng.guns.modular.system.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.datascope.DataScope;
import com.stylefeng.guns.modular.dto.ReturnListQueryRequest;
import com.stylefeng.guns.modular.system.model.GoodsReturn;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiuXin
 * @since 2018-09-12
 */
@Repository
public interface GoodsReturnMapper extends BaseMapper<GoodsReturn> {

    /**
     * 查询返回列表
     * @param page 分页
     * @param request 查询条件
     * @return 结果集
     */
    List<GoodsReturn> selectReturnPageWithDataScope(@Param("page")Page page, DataScope dataScope, @Param("gr")ReturnListQueryRequest request);

}
